package co.edu.unal.geditor.model;

import java.awt.Color;
import java.awt.Point;

import co.edu.unal.geditor.view.ElementView;
import co.edu.unal.geditor.view.RectangleGraphView;

public class RectangleElement extends ClosedGraphElement
{
	private static final long serialVersionUID = 1L;

	// method overloading
	public RectangleElement( Point pUL, Point pBD )
	{
		super( pUL, pBD );
	}

	// method overloading
	public RectangleElement( Point pUL, Point pBD, Color color )
	{
		super( pUL, pBD, color );
	}

	// method overloading
	protected RectangleElement( Point pUL, Point pBD, Color color, int lineWidth )
	{
		super( pUL, pBD, color, lineWidth );
	}

	// method overloading
	protected RectangleElement( Point pUL, Point pBD, Color color, int lineWidth, Color fillColor )
	{
		super( pUL, pBD, color, lineWidth, fillColor );
	}

	@Override
	protected ElementView createView()
	{
		// start with graphics view by default
		
		return new RectangleGraphView( this );
	}
}
